home *** CD-ROM | disk | FTP | other *** search
- on MouseClick maLettre
- global gNumSpr, g1erSprLoc, gBoutons, gEtudAct, gEtatEtud, gPartie, gCDpath, gSujet0, gSujet1, gSurvolPrec, gListCod, gMessDef1, gMessDef2, gMessSty1, gMessSty2, gMol, gScopeCo0, gScopeCo1, gPosVideo, gPosDebP, gPosDebS0, gPosDebS1, gPosDebE, gTraduit
- if maLettre = "T" then
- if (gEtatEtud = " ") and (gPartie = " ") then
- gBoutons(habille, g1erSprLoc + 11, "BTPVID 1")
- gBoutons(habille, g1erSprLoc + 12, "BTGRWS 1")
- gBoutons(habille, g1erSprLoc + 13, "BTGAVS 1")
- set gMol to 0
- set gPosVideo to 0
- set gSujet1 to gSujet0
- repeat with i = g1erSprLoc + 10 to g1erSprLoc + 13
- set the visible of sprite i to 1
- end repeat
- else
- if gPartie = "T" then
- set oldNumSpr to g1erSprLoc + 9
- else
- if gPartie = "C" then
- set oldNumSpr to g1erSprLoc + 8
- else
- if gPartie = "S" then
- set oldNumSpr to g1erSprLoc + 7
- else
- if gPartie = "B" then
- set oldNumSpr to g1erSprLoc + 6
- else
- alert("gPartie=" & gPartie)
- end if
- end if
- end if
- end if
- gBoutons(relache, oldNumSpr)
- gBoutons(appuie, gNumSpr)
- end if
- if gEtatEtud <> " " then
- set gMessDef1 to getAt(gTraduit, 38)
- else
- set gMessDef1 to getAt(gTraduit, 61)
- end if
- set gEtatEtud to maLettre
- set gPartie to maLettre
- set gPosDebS0 to (getPos(gListCod, gSujet0(Le_Code)) - 1) * 300 * 4
- set gPosDebS1 to (getPos(gListCod, gSujet1(Le_Code)) - 1) * 300 * 4
- set gPosDebP to (getPos(gListPart, gPartie) - 1) * 300
- gScopeCo0(Box, 20, 92, 280, 256)
- gScopeCo1(Box, 20, 296, 280, 460)
- gScopeCo0(SetTime, gPosDebE + gPosDebS0 + gPosDebP + gPosVideo)
- gScopeCo1(SetTime, gPosDebE + gPosDebS1 + gPosDebP + gPosVideo)
- gScopeCo0(visible, 1)
- gScopeCo1(visible, 1)
- else
- gBoutons(relache, gNumSpr)
- beep()
- end if
- set gSurvolPrec to -1
- end
-
- on mouseDown
- global gNumSpr, g1erSprLoc, gBoutons
- set gNumSpr to -2
- repeat with i = g1erSprLoc + 6 to g1erSprLoc + 9
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- if gNumSpr > 0 then
- gBoutons(appuie, gNumSpr)
- end if
- end
-
- on mouseUp
- global gNumSpr, g1erSprLoc, gBoutons, gEtudAct, gEtatEtud, gPartie, gCDpath, gSujet0, gSujet1, exitFrame, gSurvolPrec, gMessDef1, gMessDef2, gMessSty1, gMessSty2, gSprVideo1
- curseur(1)
- set monNumSpr to -2
- repeat with i = g1erSprLoc + 6 to g1erSprLoc + 9
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if (monNumSpr = gNumSpr) and (monNumSpr > 0) then
- MouseClick(char 3 of the name of cast the castNum of sprite gNumSpr)
- else
- pass()
- end if
- end
-